
package com.ssi.tatts.model.hibernate.domainobjects;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

import com.etu.jsonservices.util.StringUtils;
import com.ssi.tatts.model.ITask;

@SuppressWarnings("serial")
@Entity
@Table(name="Tasks")
public class Task implements ITask{
	@Id
	private Long id;
	private String name;
	private Long workgroup;

	@Column(name="visible")
	private boolean visibility;
			
	public Long getId() {
		return id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
	
	public String toString(){
		return StringUtils.toJSONString(this);
	}

	public void setVisibility(boolean visibility) {
		this.visibility = visibility;
	}

	public boolean isVisible() {
		return visibility;
	}

	public void setWorkgroup(Long workgroup) {
		this.workgroup = workgroup;
	}

	public Long getWorkgroup() {
		return workgroup;
	}

}
